/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2019-2022. All rights reserved.
 * Description: 与AI设备(D芯片)相关dnn,runtime,drv等接口适配INC头文件
 * Author: xiaoshizhong
 * Create: 2019-06-14
 */

#ifndef HCCL_INC_ADAPTER_TDT_H
#define HCCL_INC_ADAPTER_TDT_H

#include <hccl/hccl_types.h>
#include "hccl/base.h"
#include "dltdt_function.h"

constexpr u32 TSD_OPEN_DEFAULT_RANK_SIZE = 2; // 用于作为TsdOpen接口入参(>=2时，会拉起HCCP进程)。详见TsdOpen接口说明

HcclResult hrtOpenTsd(u32 deviceLogicId, u32 rankSize);
HcclResult hrtTsdProcessOpen(u32 deviceLogicId, ProcOpenArgs *openArgs);
HcclResult hrtProcessCloseSubProcList(u32 deviceLogicId, ProcStatusParam *closeList, u32 listSize);
HcclResult hrtTsdCapabilityGet(uint32_t deviceLogicId, int32_t type, uint64_t ptr);

#endif